package Chapter04.Homework;

public class Test08 {
    public static void main(String[] args) {
        int[] sum=new int[]{1,2,3,4,5,6,7,8,9,10};
        int he=0,ji=1;
        for (int i=0;i<10;i++){
            he+=sum[i];
            ji*=sum[i];
        }
        System.out.println("和"+he+",积"+ji);
    }
}
